package com.itfreer.gis.map.dictionary;

import com.itfreer.form.api.dictionary.DictionaryEntity;
import com.itfreer.form.api.dictionary.LocalDictionaryBase;
import org.springframework.stereotype.Component;

import java.util.ArrayList;
import java.util.List;

/**
 * 浏览器类型
 */
@Component
public class BrowserDictionary extends LocalDictionaryBase {

	@Override
	public String getDictionaryName() {
		return "d_browser";
	}
	
	@Override
	protected List<DictionaryEntity> getDictionarys() {
		List<DictionaryEntity> list = new ArrayList<DictionaryEntity>();
		
		DictionaryEntity item = new DictionaryEntity();
		item.setId("1");
		item.setCode("1");
		item.setDisplay("谷歌");
		item.setOrder(1);
		list.add(item);
		
		item = new DictionaryEntity();
		item.setId("2");
		item.setCode("2");
		item.setDisplay("IE9");
		item.setOrder(2);
		list.add(item);
		
		item = new DictionaryEntity();
		item.setId("3");
		item.setCode("3");
		item.setDisplay("IE10");
		item.setOrder(3);
		list.add(item);

		item = new DictionaryEntity();
		item.setId("4");
		item.setCode("4");
		item.setDisplay("IE11");
		item.setOrder(5);
		list.add(item);

		item = new DictionaryEntity();
		item.setId("5");
		item.setCode("5");
		item.setDisplay("火狐");
		item.setOrder(5);
		list.add(item);
		
		return list;
	}
}
